<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/secondarytitle.css">
<link rel="stylesheet" href="statics/css/ExportBusiness/tpl/newupoffer.css">
<div class="layui-fluid">
    <div class="layui-card">
        <div class="header">
            <img class="img " src="statics/images/titheader.svg">
            <span>外销明细</span>
        </div>
        <div class="layui-card-body">
            <form class="layui-form" action="" lay-filter="editor-form" id="editor-form">
                <%--                start--%>
                    <dl class="layui-row sk_row">
                        <div>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>客户名称</text>
                                </div>
                                <div class="layui-col-xs8"><input type="text" name="customerName" lay-verify="required" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    联系人
                                </div>
                                <div class="layui-col-xs8"><input type="text" name="customerContactName" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    国家
                                </div>
                                <div class="layui-col-xs8">  <input type="text" name="countryName" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>客户等级</text>
                                </div>
                                <div class="layui-col-xs8">  <input type="text" name="customerLevelName" autocomplete="off" class="layui-input"></div>
                            </dd>
                        </div>

                        <div>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    签约日期
                                </div>
                                <div class="layui-col-xs8"><input type="text" name="signingDate" id="sdate" lay-verify="required|date" autocomplete="off" class="layui-input starttime" placeholder="年 - 月 - 日"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>合同编号</text>
                                </div>
                                <div class="layui-col-xs8"><input type="text" name="billNo" autocomplete="off" class="layui-input" lay-verify="required"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    客户合同号
                                </div>
                                <div class="layui-col-xs8"><input type="text" name="customerContactNo" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3 Authority-Label">
                                <div class="layui-col-xs4 text-right padding-right">
                                    合同总额
                                </div>
                                <div class="layui-col-xs8"> <input type="text" name="totalContractAmount" autocomplete="off" class="layui-input"></div>
                            </dd>
                        </div>
                        <div>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>预收款类型</text>
                                </div>
                                <div class="layui-col-xs8"><input type="text" name="paymentTypeName" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    预收款金额
                                </div>
                                <div class="layui-col-xs8"><input type="text" name="advancePaymentAmount" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>币种</text>
                                </div>
                                <div class="layui-col-xs8"><input type="text" name="currency" autocomplete="off" class="layui-input" lay-verify="required"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>美元兑人民币汇率</text>
                                </div>
                                <div class="layui-col-xs8"><input type="text" name="rmbRate" autocomplete="off" class="layui-input" lay-verify="required|number"></div>
                            </dd>
                        </div>
                        <div style="display: flex;clear: both">
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>客户账期</text>
                                </div>
                                <div class="layui-col-xs8"> <input type="text" name="customerAccountingPeriod" autocomplete="off" class="layui-input" lay-verify="required|number"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    城市
                                </div>
                                <div class="layui-col-xs8">
                                    <input type="text" name="city" id="city" autocomplete="off" class="layui-input">
                                </div>
                            </dd>
                        </div>
                        <div>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>业务模式</text>
                                </div>
                                <div class="layui-col-xs8"><input type="text" name="businessModelName" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>是否采购</text>
                                </div>
                                <div class="layui-col-xs8">  <input type="text" name="whetherToPurchaseStr" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>要求交货日期</text>
                                </div>
                                <div class="layui-col-xs8"> <input type="text" name="carryTime" id="shdate" lay-verify="required|date" autocomplete="off" class="layui-input starttime" placeholder="年 - 月 - 日"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>唛头</text>
                                </div>
                                <div class="layui-col-xs8">  <input type="text" name="shippingMarkStr" autocomplete="off" class="layui-input"></div>
                            </dd>
                        </div>

                        <div>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    价格术语
                                </div>
                                <div class="layui-col-xs8"> <input type="text" name="priceTermsName" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>是否报关</text>
                                </div>
                                <div class="layui-col-xs8">  <input type="text" name="isDeclareStr" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>运输方式</text>
                                </div>
                                <div class="layui-col-xs8"><input type="text" name="modeOfTransport" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    货柜型号
                                </div>
                                <div class="layui-col-xs8"> <input type="text" name="containerType" autocomplete="off" class="layui-input"></div>
                            </dd>
                        </div>

                        <div>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    起运地
                                </div>
                                <div class="layui-col-xs8"><input type="text" name="transitPlaceName" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    目的地
                                </div>
                                <div class="layui-col-xs8"> <input type="text" name="destinationName" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>是否打托</text>
                                </div>
                                <div class="layui-col-xs8">  <input type="text" name="whetherToSupportStr" id="whetherToSupportStr" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>分批出运</text>
                                </div>
                                <div class="layui-col-xs8">  <input type="text" name="shipmentInBatchesStr" id="shipmentInBatchesStr" autocomplete="off" class="layui-input"></div>
                            </dd>
                        </div>

                        <div>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    是否走信保订单
                                </div>
                                <div class="layui-col-xs8">  <input type="text" name="whetherCreditGuaranteeStr" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    信保订单金额
                                </div>
                                <div class="layui-col-xs8">  <input type="text" name="creditGuaranteeAmount" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    是否客诉补货
                                </div>
                                <div class="layui-col-xs8">  <input type="text" name="whetherToReplenishStr" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    CAPA号
                                </div>
                                <div class="layui-col-xs8">
                                    <input type="text" name="customerComplaintNo" id="customerComplaintNo" autocomplete="off" class="layui-input">
                                </div>
                            </dd>
                        </div>

                        <div>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    <text>瓶底是否指定Logo</text>
                                </div>
                                <div class="layui-col-xs8"><input type="text" name="modeOfTradeStr" autocomplete="off" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right"><%--单据备注改为：客户特殊要求--%>
                                    客户特殊要求
                                </div>
                                <div class="layui-col-xs8"> <textarea name="memo" placeholder="请输入内容" class="layui-textarea"></textarea></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    业务员
                                </div>
                                <div class="layui-col-xs8"><input type="text" name="salesmanName" autocomplete="off"  lay-verify="required" class="layui-input"></div>
                            </dd>
                            <dd class="layui-col-md3">
                                <div class="layui-col-xs4 text-right padding-right">
                                    签约公司
                                </div>
                                <div class="layui-col-xs8"> <input type="text" name="signingCompanyName" autocomplete="off" class="layui-input"></div>
                            </dd>
                        </div>
                    </dl>
                <%--                over--%>

                <div class="layui-row">
                    <div class="layui-col-xs12">
                        <div class="layui-tab layui-tab-card">
                            <ul class="layui-tab-title">
                                <li class="layui-this">产品</li>
                                <li class="">费用</li>
                                <li class="">附件</li>
                                <li class="">日志</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div  class="layui-tab-item  layui-show">
                                    <table class="layui-table" id="storageproducts" lay-filter="storageproductstable"></table>

                                    <div class="layui-tab layui-tab-card" id="hidden">
                                        <ul class="layui-tab-title">
                                            <li class="layui-this">产品规格配件</li>
                                            <li class="">库存现状</li>
                                        </ul>
                                        <div class="layui-tab-content">
                                            <div class="layui-tab-item layui-show">
                                                <table class="layui-table" id="productsaselect" lay-filter="productsatable"></table>
                                            </div>
                                            <div class="layui-tab-item">
                                                <table class="layui-table" id="istatusselect" lay-filter="istatustable"></table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-tab-item">
                                    <table class="layui-table" id="cost" lay-filter="costtable"></table>
                                </div>
                                <div class="layui-tab-item">
                                    <table class="layui-table" id="attachment" lay-filter="attachmenttable"></table>
<%--                                    <div class="padding text-right">--%>
<%--                                        <button type="button" class="layui-btn" lay-submit="" lay-filter="form-element">立即提交</button>--%>
<%--                                    </div>--%>
                                </div>
                                <div class="layui-tab-item"><table class="layui-table" id="otherwarehouselog" lay-filter="logtable"></table></div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script type="text/html" id="imgTpl">
    <img src="{{d.productimg}}" data-id="{{d.id}}" class="btn_productimg" onerror="this.src='statics/images/layui-logo.jpg';this.onerror=null" alt="产品图片" style="max-width:70px;max-height: 28px;">
</script>

<div class="layui-upload" id="attachmentupload" style="display: none;padding: 10px">
    <a type="button" class="layui-btn layui-btn-normal" id="uploadfile">选择文件</a>
    <div class="layui-upload-list">
        <table class="layui-table">
            <thead>
            <tr><th>文件名</th>
                <th>大小</th>
                <th>状态</th>
                <th>操作</th>
            </tr></thead>
            <tbody id="uploadlist"></tbody>
        </table>
    </div>
    <a type="button" class="layui-btn" id="testListAction">开始上传</a>
</div>
<script type="text/html" id="attachmenttoolbar">
    <a class="layui-btn" data-type="getCheckData" lay-event="uploadfile">上传</a>
</script>
<script type="text/html" id="attachmenteditor">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="download">下载</a>
<%--    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>--%>
</script>
<script type="text/html" id="istatustoolbar">
    <a class="layui-btn layui-btn-sm" data-type="getCheckData" lay-event="refresh">刷新</a>
</script>
<%@ include file="../../tpl/foot.jsp"%>
<script src="statics/js/ExportBusiness/tpl/viewexport.js"></script>